import http from '@/utils/request'

/**
 * 登录账号
 * @module apis/sysAuth
 */
export function login(data: object) {
  return http.post('/api/sysAuth/login', data)
}

export function getUserInfo() {
  return http.get('/api/sysAuth/userInfo')
}

export function logout() {
  return http.post('/api/sysAuth/logout')
}
export function getcaptcha() {
  return http.get('/api/sysAuth/captcha')
}

export default {
  login,
  logout
}
